package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.CareValue;
import org.darkforest.model.GiftReceiveRecord;

import java.math.BigDecimal;
import java.util.List;

@DBMapper
public interface GiftReceiveRecordMapper {
    int deleteByPrimaryKey(Integer rId);

    int insert(GiftReceiveRecord record);

    int insertSelective(GiftReceiveRecord record);

    GiftReceiveRecord selectByPrimaryKey(Integer rId);

    int updateByPrimaryKeySelective(GiftReceiveRecord record);

    int updateByPrimaryKey(GiftReceiveRecord record);

    /**
     * 根据条件查询礼品领取记录列表
     * @param giftReceiveRecord
     * @return
     */
    List<GiftReceiveRecord> selectListByCondition(GiftReceiveRecord giftReceiveRecord);

    /***
     * 获取在乎值列表
     * @param record
     * @return
     */
    List<CareValue> selectCareList(CareValue record);
    /***
     * 获取在乎值
     * @param record
     * @return
     */
    BigDecimal selectCareValue(CareValue record);
}